<?php

/**
 * IndexController - Index
 *
 * @author Fernando Dias Oliveira <rodox17@gmail.com>
 * @package intranet
 * @subpackage controller
 */

class ImprimirController extends AppBaseController 
{
	public function init()
	{
		parent::init();		
	}

    public function indexAction() 
    {

    }
    
    public function imprimirAction()
    {
    	$this->view->cod = $this->_request->getParam("cod");
    	
    	$this->view->base = $this->base;
    	
    	$this->_helper->layout->disableLayout();
    }
    
    public function imprimirtxtAction()
    {
    	$caf02 = new caf02();
    	
    	$this->view->arr = $caf02->getPedidoByCod2($this->_request->getParam("cod"));
    	
    	$this->view->base = $this->base;
    	
    	$this->_helper->layout->disableLayout();
    }
    
    public function imprvarAction()
    {
    	$this->view->cod     = $this->_request->getParam("cod");
    	$this->view->menu_id = $this->_request->getParam("menu");    	
    	$this->view->base    = $this->base;
    	
    	$this->_helper->layout->disableLayout();
    }
}

?>